
package com.eworking.eim.cloud;

import android.text.format.Time;
import java.util.Map;
import java.util.Properties;

public abstract class CloudFileManager {
    
    protected Properties sessionContext;
    
    protected static final String _TAG = CloudFileManager.class.getSimpleName();
    
    public static CloudFileManager instance = null;
    
    public abstract boolean authorization();
    
    public String getRemoteFileName(String paramString1, String paramString2) {
        Time localTime = new Time();
        localTime.setToNow();
        String str1 = paramString2.substring(paramString2.lastIndexOf("."), paramString2.length());
        String str2 = paramString1 + localTime.toString().substring(0, 15);
        return str2 + str1;
    }
    
    public abstract void uploadFileInBackground(String paramString1, String paramString2, String paramString3,
        String paramString4, Map<String, String> paramMap, CloudOperationCallback paramCloudOperationCallback);
    
    public abstract void downloadFile(String paramString1, String paramString2, String paramString3,
        String paramString4, Map<String, String> paramMap, CloudOperationCallback paramCloudOperationCallback);
    
    public abstract void deleteFileInBackground(String paramString1, String paramString2, String paramString3,
        CloudOperationCallback paramCloudOperationCallback);
}
